import request from '@/utils/request'

// 获取体测项目列表
export function getFitnessProjectList(params) {
  return request({
    url: '/fitness-project/list',
    method: 'get',
    params
  })
}

// 添加体测项目
export function addFitnessProject(data) {
  return request({
    url: '/fitness-project/add',
    method: 'post',
    data
  })
}

// 更新体测项目
export function updateFitnessProject(data) {
  return request({
    url: '/fitness-project/update',
    method: 'put',
    data
  })
}

// 删除体测项目
export function deleteFitnessProject(projectId) {
  return request({
    url: `/fitness-project/delete/${projectId}`,
    method: 'delete'
  })
}